package secondPart.polymorphism;

public class Dog extends Animal {
    public void eat() {
        System.out.println("狗是可以吃东西的！");
    }
    public void watchDoor() {
        System.out.println("狗具有看门的能力！");
    }

    @Override
    public String toString() {
        return "Dog{}";
    }
}
